package com.lyz.myself.service.ServiceImpl;

import com.lyz.myself.mapper.RFileLeadsMapper;
import com.lyz.myself.pojo.Po.RFileLeads;
import com.lyz.myself.service.RFileLeadsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: myself
 * @Date: 2019/2/15 12:03
 * @Author: Mr.Deng
 * @Description:
 */
@Service
public class RFileLeadsServiceImpl implements RFileLeadsService {

    @Autowired
    RFileLeadsMapper rFileLeadsMapper;

    @Override
    public int insertFile(List<RFileLeads> list){
        return rFileLeadsMapper.insertFile(list);
    }

    /**
     * 根据附件id删除关系
     * @param file_id
     * @return
     */
    @Override
     public int deleteLeadsFile(Integer file_id){
        return rFileLeadsMapper.deleteLeadsFile(file_id);
    }

}
